package cn.itcast.dao;

import cn.itcast.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
   /**
    * 根据预约时间查询是否存在预约
    *
    * @return
    */

   long findCountByOrderDate(String date);

   /**
    * 添加预约
    * @param orderSetting
    */
   void add(OrderSetting orderSetting);

   /**
    * 根据预约时间修改预约人数
    * @param orderSetting
    */
   void editNumberByOrderDate(@Param("orderSetting") OrderSetting orderSetting, @Param("date") String date);


   List<OrderSetting> getOrderSettingByMonth(Map date);
}
